token representation
Attention Expansion: Enhancing Keyphrase Extraction from Long Documents with Attention-Augmented Contextualized Embeddings
Martínez-Cruz, Roberto, López-López, Alvaro J., Portela, José
Pre-trained language models (PLMs) have achieved strong performance in keyphrase extraction (KPE), largely due to their ability to generate rich contextualized representations. However, long-document KPE remains challenging because salient keyphrase evidence may be scattered across distant document sections that cannot be jointly captured within the limited context window of most PLMs. Although long-context large language models (LLMs) can process broader textual contexts, their computational cost limits their practicality for efficient and high-throughput KPE. To overcome this limitation, we propose an attention expansion mechanism that augments PLM token representations with information from surrounding out-of-context chunks using pre-trained word embeddings. The proposed mechanism expands the effective contextual scope of PLM-based KPE models without requiring full-document attention or expensive LLM-based inference. We evaluate our approach across five PLM backbones, including general-purpose, scientific, task-specific, and long-context encoders, using two training regimes and five benchmark corpora from scientific and news domains. Experimental results demonstrate that attention expansion consistently enhances KPE performance across all evaluation settings, outperforming state-of-the-art models and yielding notable improvements in F1 score. The improvements extend to domain-specific, task-specialized, and native long-context models, showing that the proposed mechanism provides complementary information rather than merely compensating for limited input length. These results establish attention expansion as an efficient and effective strategy for long-document KPE.
Vector Quantized Latent Concepts: A Scalable Alternative to Clustering-Based Concept Discovery
Yu, Xuemin, Garg, Ankur, Kahou, Samira Ebrahimi, Sajjad, Hassan
Large language models (LLMs) encode rich semantic information in their hidden states, yet it remains difficult to understand what information these internal representations capture. Latent concepts extracted from hidden states offer a promising direction for interpreting LLMs, but existing clustering-based methods face a trade-off: hierarchical clustering produces coherent concepts but is limited to small datasets due to its quadratic memory cost, while K-Means scales efficiently but may yield less semantically coherent concepts. We propose Vector Quantized Latent Concept (VQLC), a discrete concept learning framework that learns a codebook of latent concepts on frozen hidden states. Across 12 dataset-model settings, VQLC stays close to K-Means in computational cost, scales better than hierarchical clustering, and remains competitive in faithfulness, with the clearest gains on decoder-only models. LLMs-based evaluation, qualitative analysis, and a Sparse Autoencoder (SAE) comparison demonstrate that the learned concepts are interpretable and task-relevant.
White-Box Transformers via Sparse Rate Reduction
In this paper, we contend that the objective of representation learning is to compress and transform the distribution of the data, say sets of tokens, towards a mixture of low-dimensional Gaussian distributions supported on incoherent subspaces. The quality of the final representation can be measured by a unified objective function called sparse rate reduction. From this perspective, popular deep networks such as transformers can be naturally viewed as realizing iterative schemes to optimize this objective incrementally. Particularly, we show that the standard transformer block can be derived from alternating optimization on complementary parts of this objective: the multi-head self-attention operator can be viewed as a gradient descent step to compress the token sets by minimizing their lossy coding rate, and the subsequent multi-layer perceptron can be viewed as attempting to sparsify the representation of the tokens. This leads to a family of white-box transformer-like deep network architectures which are mathematically fully interpretable. Despite their simplicity, experiments show that these networks indeed learn to optimize the designed objective: they compress and sparsify representations of large-scale real-world vision datasets such as ImageNet, and achieve performance very close to thoroughly engineered transformers such as ViT.
0e0157ce5ea15831072be4744cbd5334-Supplemental-Conference.pdf
A.1 Dataset Details & Evaluation Metrics As stated earlier, the main application of Extreme Multi-label Text Classification is in e-commerce - product recommendation and dynamic search advertisement - and in document tagging, where the objective of an algorithm is to correctly recommend/advertise among the top-k slots. Thus, for evaluation of the methods, we use precision at k (denoted by P@k), and its propensity scored variant (denoted by PSP@k) [17]. These are standard and widely used metrics by the XMC community [4]. Since P@k treats all the labels equally, it doesn't reveal the performance of the model on tail labels. However, because of the long-tailed distribution in XMC datasets, one of the main challenges is to predict tail labels correctly, which may be more valuable and informative compared to head classes.
How Retrieved Context Shapes Internal Representations in RAG
Abstracta mixture of documents that vary in relevance and usefulness. These observations question the reretrieved document set often contains a mixtureliability of RAG systems, calling for an in-depth of documents that vary in relevance and useful-understanding of how RAG truly works. To fill the gap of understanding, prior work has is known about how retrieved context shapes largely focused on analyzing RAG at the level of output behavior, studying how different retrievalthe internal representations that mediate instrategies or context compositions affect final an-formation integration in RAG. In this work, we study RAG through the lens of latent representa-swers, such as accuracy (Shi et al., 2023; Wu et al., tions. We systematically analyze how different 2025; Vladika and Matthes, 2025) and hallucinatypes of retrieved documents affect the hiddention rates (Joren et al., 2025; Amiraz et al., 2025). Across four question-answering they offer a limited understanding of how different datasets and three LLMs, we analyze internal types of retrieved documents influence the internal representations of LLMs. Output-level observa-representations under controlled single-and tions alone cannot distinguish whether a change inmulti-document settings. Our results reveal how context relevancy and layer-wise process-output arises from effective evidence integration, ing influence internal representations, provid-suppression of parametric knowledge, or a delibering explanations of LLMs' output behaviorsate model response such as uncertainty or refusal. A principled understanding of RAG, therefore, re-1 Introduction quires examining the internal representations that mediate interactions between retrieved information Retrieval-augmented generation (RAG) has be-and a model's parametric knowledge.